package com.springCloud.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.client.ServiceInstance;
import org.springframework.cloud.client.discovery.DiscoveryClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@Slf4j
public class ShareController {
   // @Autowired
   // private DiscoveryClient client;

    @RequestMapping(value = "/share" )
    public String order() {
       // ServiceInstance instance = client.getLocalServiceInstance();
        log.info("被调用了");
        return "这是分享服务";
    }
}
